﻿using System;
using RTW.Core.Attributes;
using RTW.Core.Entity;

namespace RTW.Model
{
    /// <summary>
    /// TFilesApply动态表实体类
    /// </summary>
    [Serializable]
    [Table(Name = "TFilesApply")]
    public partial class TFilesApply:IEntityBase
    {
        [Id(true)]
        public int ID { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>		
        public string FID { get; set; }
        /// <summary>
        /// 申请理由
        /// </summary>
        public string AReason { get; set; }
        /// <summary>
        /// 申请天数
        /// </summary>		
        public int? ADate { get; set; }
        /// <summary>
        /// 状态  0-待审核  1-已通过 2-不通过  3-已过期
        /// </summary>		
        public int? State { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>		
        public string Approver { get; set; }
        /// <summary>
        /// 审核备注
        /// </summary>		
        public string Remarks { get; set; }
        /// <summary>
        /// 审批时间
        /// </summary>		
        public string AppTime { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>		
        public string UserID { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>		
        public string AddTime { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public int? Flag1 { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public int? Flag2 { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public int? Flag3 { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public string Bak1 { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public string Bak2 { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public string Bak3 { get; set; }
        /// <summary>
        /// 
        /// </summary>		
        public int? DWID { get; set; }
        /// <summary>
        /// 到期时间   审核时间+申请时间
        /// </summary>		
        public DateTime? ExpireTime { get; set; }
        #region 分页参数
        /// <summary>
        /// 记录总数
        /// </summary>
        [IgnoreColumn]
        public int RecordCount { get; set; }
        #endregion
    }
}
